package com.sds.shop.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sds.fw.mvc.Action;
import com.sds.fw.mvc.HttpUtil;
import com.sds.shop.dao.MemDAO;
import com.sds.shop.vo.MemVO;

public class MyInfoModifyAction extends Action 
{
	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response) 
			throws IOException, ServletException{
		MemDAO dao = new MemDAO();
		MemVO mv =  new MemVO();
		String mem_id = request.getParameter("mem_id");
		mv = dao.getCustomer(mem_id);
		request.setAttribute("myInfoModify", mv);
		String path = "/jsp/myinfomodify.jsp";
		HttpUtil.forward(request, response, path);
	}
}
